<%@ page language="java" pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/jsp/pub/include.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台管理--考题上传</title>
<link href="<%=request.getContextPath() %>/css/admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function trim(str){
	return str.replace(/^\s+|\s+$/,"");
}
</script>
</head>
<body>
<div class="content">
<jsp:include page="../pub/top.jsp"></jsp:include>
<!--头部结束-->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="left" valign="top">
<jsp:include page="../pub/left_clazz.jsp"></jsp:include>
</td>
<td valign="top">
	<div class="right">
	<form action="<c:url value="/admin/uploadFile?m=uploadFile"/>" method="post" enctype="multipart/form-data" style="margin:0">
	<table width="80%" border="0" cellpadding="0" cellspacing="1" bgcolor="#d1d5d8">

        <tr>
            <td width="15%" height="28" align="right" bgcolor="#edf1f7"><span>*</span>所属课程：</td>
            <td height="28" bgcolor="#FFFFFF">
                <select class="sheng" name="courseId" id="courseId">
                    <option value="0">选择课程</option>
                    <c:forEach items="${courseList}" var="course">
                        <option value="${course.id}" ${param.courseId==course.id?'selected=selected':''}><c:out value="${course.name}"/></option>
                    </c:forEach>
                </select>
            </td>
        </tr>
        <tr>
            <td width="15%" height="28" align="right" bgcolor="#edf1f7"><span>*</span>试卷类型：</td>
            <td height="28" bgcolor="#FFFFFF">
                <select class="sheng" name="libraryType" id="libraryType">
                    <option value="0">选择试卷类型</option>
                    <c:forEach items="${libraryTypeList}" var="libraryType">
                        <option value="${libraryType.name}" ${param.libraryType==libraryType.name?'selected=selected':''}><c:out value="${libraryType.value}"/></option>
                    </c:forEach>
                </select>
            </td>
        </tr>
        <tr>
            <td width="15%" height="28" align="right" bgcolor="#edf1f7"><span>*</span>试学题数：</td>
            <td height="28" bgcolor="#FFFFFF">

                <input type="number" name="trial_num" id="trial_num" min="1" value="10"/>
            </td>
        </tr>

        <tr>
	<td width="15%" height="28" align="right" bgcolor="#edf1f7"><span>*</span>考题文件：</td>
	<td height="28" bgcolor="#FFFFFF">
		<input type="file" name="multipartFile" id="file"/>
		<p>请上传课程文件，为zip，excel</p></td>

	</tr>

        <tr>
        <td width="15%" height="28" align="right" bgcolor="#edf1f7"><span>*</span>上传说明</td>
        <td height="28" bgcolor="#FFFFFF">

            <p style="color: #cc0000">试卷名称_答题模式.xlsx  例：第一章私募股权投资基金的概念_单选.xlsx</p>
            <p style="color: #cc0000">上传zip包只能包括同一试卷类型（章节或者模拟等）</p>
            <br />
            <p ><a href="<c:url value="/file/gerenlicai.zip"/>" target="_blank">下载例子</a> </p>
            <p ><a href="<c:url value="/file/caozuo.docx"/>" target="_blank">下载操作说明文档</a> </p>
            <br />
        </td>
        </tr>
	</table>
	<div class="anniu">
	<p>
        <input type="submit" value="提交" class="fabu" />
		<input type="reset" value="重置" class="fabu" />
	</p>


	</div>
	</form>
	</div>
</td>

</tr>



</table>
<jsp:include page="../pub/foot.jsp"></jsp:include>
</div>
</body>
</html>
